<!DOCTYPE html>
<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>小虚无的下午茶</title>
    <link rel="icon" th:href="@{/static/images/ico/favicon.ico}">
    <link rel="stylesheet" th:href="@{/static/css/bootstrap.min.css}">
    <link rel="stylesheet" th:href="@{/static/css/animate.min.css}">
    <link rel="stylesheet" th:href="@{/static/css/adminlte.min.css}">
    <link rel="stylesheet" th:href="@{/static/css/all.min.css}">
    <link rel="stylesheet" th:href="@{/static/css/toastr.min.css}">
    <link rel="stylesheet" th:href="@{/static/css/ionicons.min.css}">
</head>
<body class="sidebar-mini layout-fixed sidebar-collapse" style="height: auto;">
<div class="wrapper">
    <nav class="main-header navbar navbar-expand navbar-white navbar-light">
        <ul class="navbar-nav">
            <li class="nav-item">
                <a class="nav-link" data-widget="pushmenu" href="#" role="button"><i class="fas fa-bars"></i></a>
            </li>
            <li class="nav-item d-none d-sm-inline-block">
                <a href="/" class="nav-link">主页</a>
            </li>
        </ul>
        <ul class="navbar-nav ml-auto">
            <li class="nav-item dropdown">
                <a class="nav-link" data-toggle="dropdown" href="#">
                    <i class="far fa-user"></i>
                    <span class="badge badge-danger navbar-badge"></span>
                </a>
                <div class="dropdown-menu dropdown-menu-lg dropdown-menu-right"
                     th:if="${userIndexLoginInfo.getUserIsLogin() == 1}">
                    <a href="#" class="dropdown-item">
                        <div class="media">
                            <img th:src="${userIndexLoginInfo.getUserHeadUrl()}" alt="头像"
                                 class="img-size-50 mr-3 img-circle">
                            <div class="media-body">
                                <h3 class="dropdown-item-title">
                                    <span th:text="${userIndexLoginInfo.getUsername()}"></span>
                                    <span class="float-right text-sm text-danger"><i class="fas fa-star"></i></span>
                                </h3>
                                <p class="text-sm" th:text="${userIndexLoginInfo.getUserEmail()}"></p>
                                <p class="text-sm text-muted"><i class="far fa-id-card mr-1" th:text="' id-code:'"></i>
                                    <span th:text="${userIndexLoginInfo.getUserPrivateId()}"></span>
                                </p>
                            </div>
                        </div>
                    </a>
                    <div class="dropdown-divider"></div>
                    <a href="/home" class="dropdown-item dropdown-footer">个人中心</a>
                </div>
                <div class="dropdown-menu dropdown-menu-lg dropdown-menu-right"
                     th:if="${userIndexLoginInfo.getUserIsLogin() == 0}">
                    <div class="dropdown-divider"></div>
                    <a href="/login" class="dropdown-item dropdown-footer">请登录</a>
                </div>
            </li>
        </ul>
    </nav>
    <aside class="main-sidebar sidebar-dark-primary elevation-4">
        <a href="#" class="brand-link">
            <img src="/static/images/picture/login/login-ico.svg" alt="Logo" class="brand-image img-circle elevation-3"
                 style="opacity: .8">
            <span class="brand-text font-weight-light">小虚无的下午茶</span>
        </a>
        <div class="sidebar">
            <nav th:replace="/common/sidebar.html"></nav>
        </div>
    </aside>
    <div class="content-wrapper" style="min-height: 337px;">
        <section class="content-header"></section>
        <section class="content">
            <div class="container-fluid">
                <div class="row">
                    <div class="col-md-8 animated fadeIn">
                        <div class="card">
                            <div class="card-header p-2">
                                <ul class="nav nav-pills">
                                    <li class="nav-item"><a class="nav-link active" data-toggle="tab">友人帐</a></li>
                                </ul>
                            </div>
                            <div class="card-body pb-0">
                                <div class="row">
                                    <div class="col-12 col-sm-6 col-md-6 d-flex align-items-stretch flex-column"
                                         th:each="friend:${friendList}">
                                        <div class="card bg-light d-flex flex-fill">
                                            <div class="card-header text-muted border-bottom-0"></div>
                                            <div class="card-body pt-0">
                                                <div class="row">
                                                    <div class="col-8">
                                                        <h2 class="lead"><b th:text="${friend.getFriendName()}"></b>
                                                        </h2>
                                                        <p class="text-muted text-sm"><b>关于: </b>
                                                            <span th:text="${friend.getFriendIntroduction()}"></span>
                                                        </p>
                                                        <ul class="ml-4 mb-0 fa-ul text-muted">
                                                            <li class="small">
                                                                <span class="fa-li"><i class="fas fa-lg fa-laptop"></i></span>
                                                                网站:
                                                                <span th:text="${friend.getFriendWebsite()}"></span>
                                                            </li>
                                                            <li class="small">
                                                                <span class="fa-li"><i
                                                                        class="fas fa-lg fa-envelope"></i></span> 邮箱:
                                                                <span th:text="${friend.getFriendEmail()}"></span>
                                                            </li>
                                                        </ul>
                                                    </div>
                                                    <div class="col-4 text-center">
                                                        <img th:src="${friend.getFriendHeadUrl()}" alt=""
                                                             class="img-circle img-fluid">
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="card-footer">
                                                <div class="text-right">
                                                    <a th:href="${friend.getFriendWebsite()}" target="_blank"
                                                       class="btn btn-sm btn-default">
                                                        <i class="fas fa-user"></i> 前往主页
                                                    </a>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="col-md-4">
                        <div class="card card-info card-outline">
                            <div class="card-header">
                                <h3 class="card-title">关于友链申请</h3>
                            </div>
                            <div class="card-body">
                                <strong><i class="fas fa-pencil-alt mr-1"></i> 友链申请注意</strong>
                                <p class="text-muted">如果需要新增友链，请在下面提交你的申请嗷！要注意在提交前请先登录！</p>
                                <hr>
                                <strong><i class="far fa-envelope mr-1"></i> 联系我</strong>
                                <p class="text-muted">chenyu1998424@gmail.com</p>
                                <p class="text-muted">chenyu424@vip.qq.com</p>
                            </div>
                        </div>
                        <div class="card card-info">
                            <div class="card-header">
                                <h3 class="card-title">友链申请表</h3>
                            </div>
                            <div class="card-body box-profile">
                                <div class="form-group">
                                    <label for="friend-web-title">网站标题</label>
                                    <input type="text" class="form-control" id="friend-web-title"
                                           placeholder="请输入网站标题" autocomplete="new-friend-web-title">
                                </div>
                                <div class="form-group">
                                    <label for="friend-website">网站网址</label>
                                    <input type="text" class="form-control" id="friend-website"
                                           placeholder="请输入网站网址" autocomplete="new-friend-website">
                                </div>
                                <div class="form-group">
                                    <label for="friend-introduction">网站描述</label>
                                    <input type="text" class="form-control" id="friend-introduction"
                                           placeholder="请输入网站网址" autocomplete="new-friend-introduction">
                                </div>
                                <div class="form-group">
                                    <label for="friend-head-url">头像链接</label>
                                    <input type="text" class="form-control" id="friend-head-url"
                                           placeholder="请输入自己网站头像链接粘贴" autocomplete="new-friend-head-url">
                                </div>
                                <div class="custom-control custom-checkbox">
                                    <input class="custom-control-input" type="checkbox" id="friend-confirm" value="1">
                                    <label for="friend-confirm" class="custom-control-label">我已经添加chairc.cn</label>
                                </div>
                                <div class="form-group text-right">
                                    <button class="btn btn-default" id="friend-clear">清空</button>
                                    <button class="btn btn-info" id="friend-send">提交申请</button>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </section>
    </div>
    <footer th:replace="/common/footer.html"></footer>
</div>
</body>
<script type="text/javascript" th:src="@{/static/js/jquery.min.js}"></script>
<script type="text/javascript" th:src="@{/static/js/bootstrap.min.js}"></script>
<script type="text/javascript" th:src="@{/static/js/main.js}"></script>
<script type="text/javascript" th:src="@{/static/js/toastr.min.js}"></script>
<script type="text/javascript" th:src="@{/static/js/adminlte.min.js}"></script>
</html>